<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <!-- 这个页面中不要包含有js!!! -->
  </head>  
  <body>
  	<!-- 验证还是jquery-validation好用，这里省事没用 -->
	<form class="auform" id="roleForm" method="post">
		<input type="hidden" name="idBgt" id="idBgt" value="">
		<ul id="tt1" class="easyui-tree" animate="true" dnd="false" checkbox="true">
			<c:forEach items="${list}" var="m">
			<li id="${m.idBgt}">
				<span>${m.moduleName}</span>
				<ul>
					<c:set var="k">
						<c:out value="${m.idBgt}"/>
					</c:set>
					<c:forEach items="${map[k]}" var="ms">
					<li id="${ms.idBgt}"><span>${ms.moduleName}</span></li>
					</c:forEach>
				</ul>
			</li>
			</c:forEach>
		</ul>
		<div style="margin-top: 15px;text-align: center;">
			<a href="#" id="btn-back" onclick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
			<a href="#" id="btn-add" onclick="setting();" class="easyui-linkbutton" iconCls="icon-save">保存</a>
		</div>
	</form>
  </body>
</html>
